package com.h6.crm.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("SO_Quote")
public class QuoteRecord extends BaseEntity implements Serializable {

    @TableField("BidderId")
    Long bidderId; // 报价人

    @TableField("ProjectId")
    Long projectId;

    @TableField("ProjectStatus")
    String projectStatus; // 项目状态：投标阶段，招标阶段，采购阶段

    @TableField("FloatingPercentage")
    BigDecimal FloatingPercentage; // 上浮百分比

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("QuoteDate")
    Date quoteDate;

    @TableField("EntityId")
    Long entityId; // 公司商标ID

    @TableField("Number")
    Integer number; // 数量

    @TableField("Amount")
    BigDecimal amount;

    @TableField("HasFreight")
    Boolean hasfreight; // 是否含运费

    @TableField("HasTax")
    Boolean hasTax; // 是否含税

    @TableField("QuoteStatus")
    String quoteStatus; // 报价状态：失效，生效，审批中，审批不通过，审批通过，成交

    @TableField("Remark")
    String remark;

    @TableField(exist = false)
    String entity; // 公司商标

    @TableField(exist = false)
    String projectName;

    @TableField(exist = false)
    String clientName;

    @TableField(exist = false)
    String bidder;

}
